﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RimeLoRaTool.LoraServer
{
    public class LoraServerContext
    {
        public static readonly string DEFAULT_APP_KEY = "0011223344556677";
        public static readonly string DEFAULT_APP_ENC_KEY = "00112233445566778899aabbccddeeff";
        // 连接（上下文）信息
        public string Host { get; set; }
        public string Token { get; set; }
        public string ApiBaseUrl { get { return "http://" + Host + (Host.Contains(":") ? "" : ":8080"); } }
        // 配置信息
        public int OrganizationID { get; set; }
        public int NetworkServerID { get; set; }
        public string ServiceProfileID { get; set; }
        public string GatewayProfileID { get; set; }
        public int ApplicationID { get; set; } 

        public string DeviceProfileABP { get; set; }
        public string DeviceProfileABP_C { get; set; }
        public string DeviceProfileOTAA { get; set; }
        public string DeviceProfileOTAA_C { get; set; }

        public bool IsReady;
    }
}
